package com.ewanghuiju.app.ui.pintuan.activity;

import android.text.TextUtils;
import android.widget.TextView;

import com.ewanghuiju.app.R;
import com.ewanghuiju.app.app.Constants;
import com.ewanghuiju.app.base.SimpleActivity;
import com.gyf.immersionbar.ImmersionBar;

import butterknife.BindView;

/**
 * @author sj  qq:751943509
 * @class 拼团规则页面
 * @time 2020/2/19
 */
public class PintuanRuleActivity extends SimpleActivity {
    @BindView(R.id.tv_content)
    TextView tvContent;
    private String content;
    private String title;

    @Override
    protected int getLayout() {
        return R.layout.activity_pintuan_rule;
    }

    @Override
    protected void initEventAndData() {
        title = getIntent().getStringExtra(Constants.RULE_TITLE);
        content = getIntent().getStringExtra(Constants.RULE_CONTENT);
        tvTitle.setText(TextUtils.isEmpty(title) ? "" : title);
        tvContent.setText(TextUtils.isEmpty(content) ? "" : content);
    }

    @Override
    protected void initImmersionBar() {
        super.initImmersionBar();
        ImmersionBar.with(this)
                .titleBar(mToolbar, true)
                .transparentBar()
                .statusBarDarkFont(true)
                .init();
    }
}
